<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>GET 表单</h1>
    <form action="http://localhost:3000/form" method="GET">
        <input type="text" name="username">
        <input type="password'" name="password">
        <input type="submit">
    </form>
    <h1>POST 表单</h1>
    <form action="http://localhost:3000/form" method="POST">
        <input type="text" name="username">
        <input type="password'" name="password">
        <input type="submit">
    </form>
    <a href="http://localhost:3000/form">
        点这里
    </a>
    <script>
        var xml = new XMLHttpRequest()
        xml.open('POST','http://localhost:3000/form1',true)
        xml.send("wd=123&kkk=456")
        xml.onreadystatechange = function(){
            console.log(xml.response)
        }
    </script>
</body>
</html>